package com.whnk.web.controller.pm;

import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.whnk.framework.web.base.BaseController;
import com.whnk.framework.web.page.TableDataInfo;
import com.whnk.pm.domain.ProPmons;
import com.whnk.pm.service.IProPmonsService;

/**
 * 项目人月使用情况 信息操作处理
 * 
 * @author whwhnk
 * @date 2019-08-22
 */
@Controller
@RequestMapping("/pm/proPmons")
public class ProPmonsController extends BaseController
{
    private String prefix = "pm/proPmons";
	
	@Autowired
	private IProPmonsService proPmonsService;
	
	@RequiresPermissions("pm:proPmons:view")
	@GetMapping()
	public String proPmons()
	{
	    return prefix + "/proPmons";
	}
	
	/**
	 * 查询项目人月使用情况列表
	 */
	@RequiresPermissions("pm:proPmons:list")
	@PostMapping("/list")
	@ResponseBody
	public TableDataInfo list(ProPmons proPmons)
	{
		startPage();
        List<ProPmons> list = proPmonsService.selectProPmonsList(proPmons);
		return getDataTable(list);
	}
	
}
